﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：ErrCode.cs
// 功能描述：TongTongMall.MallWeb.Core
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TongTongMall.MallWeb.Core.Enums
{
    public enum ErrCode : int
    {
        [Description("成功")]
        Success = 1100,

        [Description("后端服务暂时不可用")]
        ServerDown = 1101,

        [Description("登录验证失败")]
        TokenErr = 1102,

        [Description("服务器出错")]
        ServerErr = 1103,

        [Description("token过期")]
        TokenExpire = 1104,

        [Description("用户session丢失")]
        UserSessionLack = 1105,

        [Description("用户信息发生变化")]
        UserInfoChange = 1106,

        [Description("公共授权token过期")]
        PublicTokenExpire = 1107,

        [Description("刷新令牌token过期")]
        RefreshTokenExpire = 1108,

        [Description("访问人数过多")]
        VisitToMore = 1200,

        [Description("用户名或密码错误")]
        AccountOrPwdErr = 2100,

        [Description("手机号格式错误")]
        InValidPhoneNum = 2101,

        [Description("手机号已存在")]
        PhoneNumIsExist = 2102,

        [Description("手机验证码错误")]
        InValidPhoneVerCode = 2103,

        [Description("密码格式错误")]
        InValidLoginPassword = 2104,

        [Description("邮箱已存在")]
        EmailIsExist = 2108,

        [Description("Email格式错误")]
        InValidEmail = 2109,

        [Description("图片验证码错误")]
        InValidVerCode = 2110,

        [Description("添加用户出错")]
        AddUserInfoErr = 2111,

        [Description("添加验证信息出错")]
        AddUserValidateErr = 2112,

        [Description("设置新密码出错")]
        SetNewPwdErr = 2113,

        [Description("设置昵称出错")]
        SetNickNameErr = 2114,

        [Description("更改手机账号出错")]
        UpdateAccountErr = 2115,

        [Description("修改密码出错")]
        UpdatePwdErr = 2116,

        [Description("修改邮箱出错")]
        SetEmailErr = 2117,

        [Description("设置性别出错")]
        SetSexErr = 2118,

        [Description("达到验证码最大发送次数，请稍后再试")]
        VerCodeMaxErr = 2119,

        [Description("发送验证码失败，请稍后再试")]
        SendVerCodeMaxErr = 2120,

        [Description("添加登陆记录错误")]
        AddLoginRecordErr = 2121,

        [Description("添加短信记录错误")]
        AddSMSRecordErr = 2122,

        [Description("参数错误")]
        ParamErr = 2123,

        [Description("无效的Token")]
        InValidToken = 2124,

        [Description("用户名已存在")]
        AccountIsExist = 2125,

        [Description("身份证不存在或错误")]
        InValidIdcard = 2126,

        [Description("用户名格式错误")]
        InValidUserName = 2127,

        [Description("昵称已存在")]
        NickNameIsExist = 2128,

        [Description("验证码发送太快，请稍后再试")]
        SendTooFastErr = 2129,

        [Description("邮箱验证码错误")]
        InValidEmailVerCode = 2130,

        [Description("收货地址过多")]
        ReceiptAdsTooMany = 2131,

        [Description("未查询到数据")]
        NoResult = 2132,

        [Description("添加评论错误")]
        AddProCommentErr = 2133,

        [Description("当前用户不在会员限制级别中")]
        NoContainsUser = 2134,
        [Description("不存在该优惠券")]
        NoThisCoupon = 2135,

        [Description("优惠券已经领取完")]
        NoCouponGet = 2136,

        [Description("优惠券达到上限,不可以再领取")]
        CouponToUp = 2137,

        [Description("邮箱已设置")]
        EmailIsSeted = 2138,

        [Description("手机号不存在")]
        PhoneNumIsNotExist = 2139,

        [Description("图片验证码过期")]
        InValidExpireVerCode = 2140,

        [Description("需要图片验证码")]
        NeedImageVerCode = 2141,

        [Description("优惠券已经过期")]
        CouponHasOutDate = 2143,

        [Description("帐号不存在")]
        AccountIsNotExist = 2144,

        [Description("邀请码已被注册过了")]
        InviteIDUsed = 2145,
        [Description("账户已被禁用")]
        AccountDisable = 2146,
        /// <summary>
        /// 第三方登录授权失败
        /// </summary>
        [Description("第三方登录授权失败")]
        Platform3AuthFail = 3001,

        /// <summary>
        /// 第三方授权需要绑定已登录的用户
        /// </summary>
        [Description("第三方授权需要绑定已注册的用户")]
        Platform3AuthNeedBindLoginUser = 3002,

        /// <summary>
        /// 第三方授权绑定失败
        /// </summary>
        [Description("第三方授权绑定失败")]
        Platform3AuthBindFail = 3003,
        /// <summary>
        /// 第三方授权且登录成功
        /// </summary>
        [Description("第三方授权且登录成功")]
        Platform3AuthLoginSuccess = 3016,
        /// <summary>
        /// 第三方授权绑定成功
        /// </summary>
        [Description("第三方授权且绑定成功")]
        Platform3AuthBindSuccess = 3018,
        /// <summary>
        /// 指纹登录授权失败
        /// </summary>
        [Description("指纹登录授权失败")]
        FingerAuthLoginErr = 3011,
        /// <summary>
        /// 指纹登录授权失败
        /// </summary>
        [Description("指纹授权绑定失败")]
        FingerAuthBindFail = 3012,

        /// <summary>
        /// 访问授权失败
        /// </summary>
        [Description("访问授权失败")]
        VisitTokenFail = 3004,


        /// <summary>
        /// 确认订单已失效
        /// </summary>
        [Description("确认订单已失效")]
        OrderPrepareExpire = 3005,

        /// <summary>
        /// 不能提交订单
        /// </summary>
        [Description("不能提交订单")]
        CanNotBuy = 3006,

        [Description("优惠券不能使用")]
        CouponCanNotUse = 3007,


        [Description("优惠券失效或已经删除")]
        CouponNotUser = 2147,

        [Description("支付回调")]
        PayCallBackCode = 7001,


        [Description("支付失败")]
        PayOrderFail = 7002,

        [Description("图片Token获取失败")]
        ImageTokenFail = 8001,

        [Description("库存不足")]
        InventoryIsNon = 10000,

        [Description("超过限购数量")]
        EachofLimitBuyOver = 10001,

        [Description("商品已下架")]
        DelStatusIsFour = 10002,

        [Description("商品规格详情为空")]
        SpecPropIsNull = 10003,

        [Description("超过最高可用积分")]
        ScoreOver = 10004,

        [Description("无此订单")]
        OrderIsNull = 10005,

        [Description("未定义的tk")]
        TKIsNull = 10006,

        [Description("收货地址为空")]
        AddressIsNull = 10007,

        [Description("积分不足")]
        ScoreDeficiency = 10008,

        [Description("type未定义")]
        TypeIsNotFind = 10009,


        [Description("购物车内无此商品")]
        ShopCartNotProduct = 10010,

        [Description("data数据为空")]
        DataIsNull = 10011,

        [Description("无此优惠券")]
        privilegeCardNotFind = 10012,

        [Description("到货通知已存在")]
        NoticeIsExists = 10013,

        [Description("添加到货通知失败")]
        AddNoticeError = 10014,

        [Description("商品货源充足")]
        ProductInventoryIsFull = 10015,

        [Description("设备ID错误")]
        InValidDeviceId = 10016,

        [Description("超过最大购买数")]
        BuyCountOver = 10017,

        [Description("超过最高可关注数量")]
        FollowCountOver = 10018,

        [Description("无此套餐")]
        ComboIsNull = 10019,

        [Description("未满足活动条件")]
        ActivityPrivilegeNotFull = 10020,

        [Description("未满足活动条件")]
        OrderHasRefund = 10030,

        [Description("核销码已被认证")]
        VerificationAuthentication = 10040,

        [Description("无权限核销核销码")]
        NoPermissionVerification = 10041,
    }
}
